package design.a1_factory.abstract_.one;

import design.a1_factory.abstract_.one.factory.impl.AppleFactory;
import design.a1_factory.abstract_.one.factory.impl.HuaWeiFactory;

/**
 * 抽象工厂模式
 */
public class AbsFactoryTest {

	public static void main(String[] args) {

		AppleFactory appleFactory = new AppleFactory();
		appleFactory.createPad().play();
		appleFactory.createPhone().call();

		HuaWeiFactory huaWeiFactory = new HuaWeiFactory();
		huaWeiFactory.createPad().play();
		huaWeiFactory.createPhone().call();

	}
}
